package com.soilflow.know.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.soilflow.common.core.domain.entity.GamesBetHistory;
import com.soilflow.common.core.domain.entity.GamesBidHistory;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GamesBetHistoryMapper extends BaseMapper<GamesBetHistory> {

    GamesBetHistory selectGamesBetHistoryById(Long id);

    GamesBetHistory selectGamesBetHistoryByBidNo(String bidNo);
    GamesBetHistory selectGamesBetHistoryByBetIdOfUser(GamesBetHistory dto);

    int updateBetDataByBetId(GamesBetHistory dto);
    int updateByBetId(GamesBetHistory dto);
    int deleteByBetId(Long betId);

    List<GamesBetHistory> selectGamesBetHistoryList(GamesBetHistory dto);
    GamesBetHistory selectOneGamesBetHistoryListByUserIdOfBetNo(GamesBetHistory dto);

    List<GamesBetHistory> selectGamesBetHistoryListByBidNo(String betNo);

    List<GamesBetHistory> selectGamesBetHistoryListByUserIdOfBetNo(GamesBetHistory dto);
}
